package com.zntg.bo;


import com.zntg.contants.FundFeneSureBookContants;

/**
* @Description:  对应ods库T_SPCI_PROD这张表的SPCI_TYE = '3'的份额确认书生成功能
 *@author zhengyunfei
 *@createDate Tue Dec 11 21:53:08 CST 2018
 */


public class SpciProdType3Bo implements java.io.Serializable{
 private String lBenserialNo;//--序号
 private String cFundCode;//产品ID
 private String cFundName;//产品名称
// 特殊处理产品名称字段，当管理人id = ‘202’时，要用C_FUNDNAME1, C_FUNDNAME2,  字段将产品名称换行，因为产品名称太长。
 private String cFundName1;//产品名称1
 private String cFundName2;//产品名称2
 private String cCustType;//企业类型 0 企业 1：个人
 private String lMandatorId;//管理人ID
 private String cCustName;//客户名称
 private String fBalance;//金额
 private String contractId;//合同编号
 private String fileName;//文件名
 private String intDateY;//份额确认日 年
 private String intDateM;//份额确认日 月
 private String intDateD;//份额确认日 月

 private String setDateY;//基金成立日 年
 private String setDateM;//基金成立日 月
 private String setDateD;//基金成立日 日

 private String createDateY;//确认书生成日 年 要转换为大写
 private String createDateM;//确认书生成日 月 要转换为大写
 private String createDateD;//确认书生成日 月 要转换为大写

 private String cDeadLine;//存续期限

 private String endYear;//预计到期日 年
 private String endMth;//预计到期日 月
 private String endDay;//预计到期日 日
 private String createDateYear;//生成日 年
 private String createDateMth;//生成日 月
 private String createDateDay;//生成日  日

    public String getcFundName1() {
        return cFundName1;
    }

    public void setcFundName1(String cFundName1) {
        this.cFundName1 = cFundName1;
    }

    public String getcFundName2() {
        return cFundName2;
    }

    public void setcFundName2(String cFundName2) {
        this.cFundName2 = cFundName2;
    }

    public String getcCustType() {
        return cCustType;
    }

    public void setcCustType(String cCustType) {
        this.cCustType = cCustType;
    }

    public String getlBenserialNo() {
        return lBenserialNo;
    }

    public void setlBenserialNo(String lBenserialNo) {
        this.lBenserialNo = lBenserialNo;
    }

    public String getcFundCode() {
        return cFundCode;
    }

    public void setcFundCode(String cFundCode) {
        this.cFundCode = cFundCode;
    }

    public String getcFundName() {
        return cFundName;
    }

    public void setcFundName(String cFundName) {
        this.cFundName = cFundName;
    }

    public String getlMandatorId() {
        return lMandatorId;
    }

    public void setlMandatorId(String lMandatorId) {
        this.lMandatorId = lMandatorId;
    }

    public String getcCustName() {
        return cCustName;
    }

    public void setcCustName(String cCustName) {
        this.cCustName = cCustName;
    }

    public String getfBalance() {
        return fBalance;
    }

    public void setfBalance(String fBalance) {
        this.fBalance = fBalance;
    }

    public String getContractId() {
        return contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getIntDateY() {
        return intDateY;
    }

    public void setIntDateY(String intDateY) {
        this.intDateY = intDateY;
    }

    public String getIntDateM() {
        return intDateM;
    }

    public void setIntDateM(String intDateM) {
        this.intDateM = intDateM;
    }

    public String getIntDateD() {
        return intDateD;
    }

    public void setIntDateD(String intDateD) {
        this.intDateD = intDateD;
    }

    public String getSetDateY() {
        return setDateY;
    }

    public void setSetDateY(String setDateY) {
        this.setDateY = setDateY;
    }

    public String getSetDateM() {
        return setDateM;
    }

    public void setSetDateM(String setDateM) {
        this.setDateM = setDateM;
    }

    public String getSetDateD() {
        return setDateD;
    }

    public void setSetDateD(String setDateD) {
        this.setDateD = setDateD;
    }

    public String getCreateDateY() {
        return createDateY;
    }

    public void setCreateDateY(String createDateY) {
        this.createDateY = createDateY;
    }

    public String getCreateDateM() {
        return createDateM;
    }

    public void setCreateDateM(String createDateM) {
        this.createDateM = createDateM;
    }

    public String getCreateDateD() {
        return createDateD;
    }

    public void setCreateDateD(String createDateD) {
        this.createDateD = createDateD;
    }

    public String getcDeadLine() {
        return cDeadLine;
    }

    public void setcDeadLine(String cDeadLine) {
        this.cDeadLine = cDeadLine;
    }

    public String getEndYear() {
        return endYear;
    }

    public void setEndYear(String endYear) {
        this.endYear = endYear;
    }

    public String getEndMth() {
        return endMth;
    }

    public void setEndMth(String endMth) {
        this.endMth = endMth;
    }

    public String getEndDay() {
        return endDay;
    }

    public void setEndDay(String endDay) {
        this.endDay = endDay;
    }

    public String getCreateDateYear() {
        return createDateYear;
    }

    public void setCreateDateYear(String createDateYear) {
        this.createDateYear = createDateYear;
    }

    public String getCreateDateMth() {
        return createDateMth;
    }

    public void setCreateDateMth(String createDateMth) {
        this.createDateMth = createDateMth;
    }

    public String getCreateDateDay() {
        return createDateDay;
    }

    public void setCreateDateDay(String createDateDay) {
        this.createDateDay = createDateDay;
    }
    //ods库T_SPCI_PROD这张表的SPCI_TYE = '3'的模板专用数据填充
    public static FundFeneSureBook getFeneBook(SpciProdType3Bo bo){
     FundFeneSureBook book=new FundFeneSureBook();
     book.setUserName(bo.getcCustName());//客户名称
     book.setHtNo(bo.getContractId());//合同编号
     book.setProdNm(bo.getcFundName());//产品名称

     book.setRgBigMoney(bo.getfBalance());//认购金额大写
     book.setRgSmallMoney(bo.getfBalance());//认购金额小写

     book.setIntDateY(bo.getIntDateY());//份额确认日 年
     book.setIntDateM(bo.getIntDateM());//份额确认日 月
     book.setIntDateD(bo.getIntDateD());//份额确认日 日
     //基金成立日
     book.setFundCreateDateY(bo.getSetDateY());//基金成立日 年
     book.setFundCreateDateM(bo.getSetDateM());//基金成立日 月
     book.setFundCreateDateD(bo.getSetDateD());//基金成立日 日
     book.setCyType(FundFeneSureBookContants.SPCI_TYE_3);
     //基金存续期
     book.setcDeadLine(bo.getcDeadLine());

     book.setCreateDateYear(bo.getCreateDateYear());//底部盖章日期年
     book.setCreateDateMth(bo.getCreateDateMth());//底部盖章日期月
     book.setCreateDateDay(bo.getCreateDateDay());//底部盖章日期日
     book.setPkId(bo.getcFundCode());
     book.setFileName(bo.getFileName());//文件名称

     book.setProdId(bo.getcFundCode());//产品编码
     return book;
 }
}

